package com.mtsmda.demo.spring.spring_core.javaConfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.mtsmda.demo.spring.spring_core.looseCoupling.OutputFormatI;
import com.mtsmda.demo.spring.spring_core.looseCoupling.XMLOutputFormatImpl;

@Configuration
@Import(value = { CustomerAppConfig.class, PersonAppConfig.class })
public class AppConfig {

	@Bean(name = "jsonOF")
	public OutputFormatI getJsonFormat() {
		return new XMLOutputFormatImpl();
	}

}